<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>123</title>
  </head>
  <body>
    <!-- 父窗口： (http://www.domain.com/a.html) -->
    <iframe id="iframe" src="http://child.domain.com/b.html"></iframe>
    <script>
      document.domain = "domain.com";
      var user = "admin";
    </script>
  </body>
</html>
